package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 处方信息对象 prescription
 * 
 * @author 墨白
 * @date 2024-08-10
 */
public class Prescription extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 处方ID */
    @Excel(name = "处方ID")
    private Long prescriptionId;

    /** 处方日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处方日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date prescriptionDate;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String patientName;

    /** 医生姓名 */
    @Excel(name = "医生姓名")
    private String doctorName;

    /** 处方详细信息 */
    @Excel(name = "处方详细信息")
    private String details;

    public void setPrescriptionId(Long prescriptionId) 
    {
        this.prescriptionId = prescriptionId;
    }

    public Long getPrescriptionId() 
    {
        return prescriptionId;
    }
    public void setPrescriptionDate(Date prescriptionDate) 
    {
        this.prescriptionDate = prescriptionDate;
    }

    public Date getPrescriptionDate() 
    {
        return prescriptionDate;
    }
    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }
    public void setDoctorName(String doctorName) 
    {
        this.doctorName = doctorName;
    }

    public String getDoctorName() 
    {
        return doctorName;
    }
    public void setDetails(String details) 
    {
        this.details = details;
    }

    public String getDetails() 
    {
        return details;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("prescriptionId", getPrescriptionId())
            .append("prescriptionDate", getPrescriptionDate())
            .append("patientName", getPatientName())
            .append("doctorName", getDoctorName())
            .append("details", getDetails())
            .toString();
    }
}
